<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
</head>
<body>
<span th:text="${errorMsg}"></span>
<span th:if="${session.loginUser}" th:text="${session.loginUser.username}"></span>
<form action="/user/loginByName" method="post">
    用户名:<input name="username" type="text"/><br/>
    密码:<input name="password" type="password"/><br/>
    <!--    <a href="https://gitee.com/oauth/authorize?client_id=ba92f844c06bf93080ad7fc1b86468a002305bc1a859e753eaffdf0d712b9351&redirect_uri=http%3A%2F%2Flocalhost%3A8080%2FbindPhoneNumber&response_type=code">Gitee登录</a>-->
        <a href="/user/loginByGitee">Gitee登录</a>

    <input type="text" name="code" placeholder="请输入验证码" required="true">
    <img alt="单击图片刷新！" class="pointer" src="/common/kaptcha"
         onclick="this.src='/common/kaptcha?d='+new Date()*1">
    </br>
    <button type="submit" value="submit">登陆</button>
</form>

</body>
</html>
